package com.xw.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Auther: xw
 * @Create: 2021/12/29 9:44
 * @Description:搭建mvc
 */
@Controller
public class TestController {
    @GetMapping("/index")
    String index() {
        System.out.println("进入index方法");
        return "index";
    }
}
